<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?php
require_once '../config/config.php';

$connection = mysql_connect(DB_HOST . ":" . DB_PORT, DB_USER, DB_PASS) or die(mysql_error());            
mysql_select_db(DB_NAME, $connection); 




$query = "SELECT * FROM pages";



$data = mysql_query($query, $connection);




while ($row = mysql_fetch_assoc($data)) {
    

?>
<table border="1px">
    <tr>
        <td>stt</td>
         <td>picture</td>
        <td>name</td>
        <td>username</td>
         <td>phone</td>
        <td>likes </td>
         <td>category </td>
          <td>link </td>
          <td>about</td>
          
       
    </tr>
    <tr>
        <td><?php echo $row["pid"]?></td>
          <td><img src = '<?php echo $row["picture"]?>'></td>
        <td><?php echo $row["name"]?></td>
        <td><?php echo $row["username"]?></td>
            <td><?php echo $row["phone"]?></td>
        <td><?php echo $row["likes"]?></td>
        <td><?php echo $row["category"]?></td>
        <td><?php echo $row["link"]?></td>
       <td><?php echo $row["about"]?></td>
        
       
    </tr>
</table>

<?php } ?>

